package routers

import (
	"mpps/web/controller"

	"github.com/gin-gonic/gin"
)

func UserRoutersInit(g *gin.Engine) {
	v1 := g.Group("v1")
	{
		v1.POST("/user/register", controller.NewUserController().UserRegister)
		v1.POST("/user/login", controller.NewUserController().UserLogin)
		v1.POST("/user/logout", controller.NewUserController().UserLogout)
		v1.POST("/user/refreshToken", controller.NewUserController().UserRefreshToken)
	}
}
